import request from "@/utils/request";
export const service = "/ttadmin";

// 组件目录树
export function getDirectoryTree(data) {
  return request({
    url: service + "/componmentDirectory/directoryTree",
    method: "post",
    data: data,
  });
}
// 新增/修改组件目录
export function saveOrUpdateComponmentDir(data) {
  return request({
    url: service + "/componmentDirectory/saveOrUpdateComponmentDir",
    method: "post",
    data: data,
  });
}
// 查找目录树
export function findByCondition(data) {
  return request({
    url: service + "/component/findByCondition",
    method: "post",
    data: data,
  });
}
// 删除组件目录
export function deleteComponentDirectory(data) {
  return request({
    url: service + "/componmentDirectory/deleteComponentDirectory",
    method: "post",
    data: data,
  });
}
// 组件目录列表
export function getComponentDirectoryList(data) {
  return request({
    url: service + "/componmentDirectory/page",
    method: "post",
    data: data,
  });
}
